#include"method.h"
#include"MyString.h"
#include<assert.h>
#include<iostream>
using namespace std;

int main()
{
	//char ch[]="I am a student.";
	//ReverseSentence(ch);
	//cout<<ch<<endl;

	//int a= 23445;
	//char ch[16];
	//if (itoa_Impl(ch, a))
	//	cout<<ch<<endl;

	//char ch[] = "1a23";
	//int num;
	//if(atoi_Impl(num, ch))
	//	cout<<num<<endl;

	//char p[]="abcdef";
	//LoopMove(p, 8);
	//cout<<p<<endl;

	//char ch[4];
	//char *p = "abcd";
	//strcpy(ch, p);
	//cout<<ch<<endl;

	/*char ch[5]="abc";
	cout<<sizeof(ch)<<endl;*/

	//MyString str("abc");
	//char *p="ddddddddd";
	//MyString s;s=p;
	//cout<<s.c_str()<<endl;

	//char *pStr = "abcdefg";
	//char *p = "bc";
	//cout<<strstr_Impl(pStr,p)<<endl;

	char ch[] = "abcdefg";
	LeftRotateString(ch, 2);
	cout<<ch<<endl;

	cin.get();
	return 0;
}